{% extends "index.html" %}

{% block css %}
<link href="/media/css/smoothness/ui-all.css" type="text/css" rel="stylesheet">
<style>
img {border:0px;}
.row1 {background:#111111; overflow:hidden; padding-bottom:3px;}
.row2 {background:#555555; overflow:hidden; padding-bottom:3px;}
.pd_top3 {padding-top:3px;}
a {color:#FEE044;}
</style>
{% endblock %}

{% block js %}
<script src="/media/js/jquery.js" type="text/javascript" ></script>
<script src="/media/js/jquery-ui.js" type="text/javascript" ></script>
<script src="/media/js/common.js" type="text/javascript" ></script>
{% endblock %}

{% block container %}
<div id="dialog">
	<iframe id="frm" src="" frameborder="0" style="width:99%; height:99%; border:1px solid #CCCCCC;" ></iframe>
</div>
<div style="padding-bottom:3px;" >
	<div style="float:right;" ><a href="#" onclick="openDialog('/recommend/save/?'); return false;">推荐</a></div>
	<div class="c" ></div>
</div>
{% for obj in objs %}
<div class="{% cycle row1,row2 %}">
	<div>
		<div class="l">
			<a href="/recommend/redirect/{{obj.key}}" target="_blank">{{ obj.url }}</a>
		</div>
		{% if is_current_user_admin %}
		<div style="width=10px; float:right;"><a href="#" onclick="del_confirm('/recommend/delete/{{ obj.key }}?next={{ request.path }}')" ><img src="/media/images/icon_deletelink.png" width="10" alt="删除" /></a></div>
		{% endif %}
		<div class="c"></div>
	</div>
	<div class="pd_top3" >
		<span style="float:left;" >推荐人：{{ obj.author.nickname }}</span>
		<span style="float:right;" >查看次数：{{ obj.weight }}</span>
		<div class="c" ></div>
	</div>
	<div class="pd_top3" >推荐理由：{{ obj.info }}</div>
</div>
{% endfor %}
{% endblock %}